import type { RouteRecordRaw } from "vue-router";

/**
 * 默认路由
 */
export const staticRoutes: Array<RouteRecordRaw> = [
  {
    path: "/",
    component: () => import("@/views/home/index.vue"),
    meta: {
      tableBar: true,
    },
  },
  {
    path: "/center",
    component: () => import("@/views/center/index.vue"),
    meta: {
      tableBar: true,
    },
  },
  {
    path: "/category",
    component: () => import("@/views/category/index.vue"),
    meta: {
      tableBar: true,
    },
  },
  {
    path: "/buying",
    component: () => import("@/views/worthBuying/index.vue"),
    meta: {
      tableBar: true,
    },
  },
  {
    path: "/shopcar",
    component: () => import("@/views/shopCar/index.vue"),
    meta: {
      tableBar: true,
    },
  },
  {
    path: "/:pathMatch(.*)",
    name: "Any",
    redirect: "/",
  },
];
